package com.itnoob.controller;

import com.itnoob.logger.AbstractLogger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhoujun
 * @date 2025/3/20 22:49
 */
@RestController
public class TestController {
    @Autowired
    private AbstractLogger abstractLogger;

    @GetMapping("/test")
    public String  test(){
        abstractLogger.info("this is a test message!");
        abstractLogger.warn("this is a test message!");
        abstractLogger.error("this is a test message!");
        return "test success!";
    }
}
